package mybatisTest.reflect.type;

class A<T>{
    private T value;
    public void set(T newVal){
        value=newVal;
    }

    public static void main(String[] args) {
        A a=new B();
        a.set("Hello World!");
    }
}

class B extends A<String>{
    public void set(String newVal){
        System.out.println(newVal);
        super.set(newVal);
    }
}


